package model

import "gorm.io/gorm"

type UserInfo struct {
	gorm.Model        //继承gorm的Model，里面包含了ID、CreatedAt、UpdatedAt、DeletedAt
	Name       string `gorm:"type:varchar(20);not null" json:"name"`
	Telephone  string `gorm:"varchar(11);not null;unique" json:"telephone"`
	Password   string `gorm:"size:255;not null" json:"password"`
}
